///////////////////////////////////////////////////////////////////////////////
// Project: Hoyo Client Game
//
// hy_player_db_logic.cpp
// Created: 2013-7-15
// Author: Like Cheng
///////////////////////////////////////////////////////////////////////////////

#include "hy_player_server_logic.h"
#include "hy_player_db_logic.h"

#include "hy_player_system/hy_player_data.h"

#include "hy_db/hy_db_logic.h"
#include "hy_db/hy_db_const.h"

#include "hy_net/hy_network_message.h"
#include "hy_net/hy_network_default.h"

#include "hy_common_system/hy_sequence_logic.h"

USING_NS_HY_NETWORK;
hy_player_server_logic* hy_player_server_logic_instance = NULL;
///////////////////////////////////////////////////////////////////////////////
//hy_player_server_logic::hy_player_server_logic
///////////////////////////////////////////////////////////////////////////////
hy_player_server_logic::hy_player_server_logic()
{
}
///////////////////////////////////////////////////////////////////////////////
//hy_player_server_logic::~hy_player_server_logic
///////////////////////////////////////////////////////////////////////////////
hy_player_server_logic::~hy_player_server_logic()
{

}
///////////////////////////////////////////////////////////////////////////////
//hy_player_server_logic::instance
///////////////////////////////////////////////////////////////////////////////
hy_player_server_logic* hy_player_server_logic::instance()
{
	if( hy_player_server_logic_instance == NULL )
		hy_player_server_logic_instance = new hy_player_server_logic;
	return hy_player_server_logic_instance;
}
///////////////////////////////////////////////////////////////////////////////
//hy_player_server_logic::purge_instance
///////////////////////////////////////////////////////////////////////////////
void hy_player_server_logic::purge_instance()
{
	DEL_POINTER( hy_player_server_logic_instance );
}


float hy_player_server_logic::strength_float_by_occup( int occup )
{
	float para = 0.2f;//%20
	return para;
}

float hy_player_server_logic::strength_param_by_occup( int occup )
{
	return 15;
}
float hy_player_server_logic::blood_float_by_occup( int occup )
{
	return 0.2f;
}
float hy_player_server_logic::blood_param_by_occup( int occup )
{
	return 15;
}

float hy_player_server_logic::speed_float_by_occup( int occup )
{
	return 0.2f;
}
float hy_player_server_logic::speed_param_by_occup( int occup )
{
	return 15;
}